<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>房东订单</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../statics/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../statics/js/jquery-1.8.3.min.js"></script>
    <script src="../statics/js/rem.js"></script>

    <link rel="stylesheet" type="text/css" href="../statics/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/slick/slick.css"/>
    <script type="text/javascript" src="/statics/js-pzz/foot.js"></script>
    <script type="text/javascript">
        $(window).load(function () {
            $(".loading").addClass("loader-chanage")
            $(".loading").fadeOut(300)
        })
    </script>
</head>

<%
    Object name = session.getAttribute("user");
    if (name == null) {
        out.print("<script>alert('请登录');location='../jsp/sign.jsp'</script>");
    }
%>
<div class="loading">
    <div class="loader">
        <div class="loader-inner pacman">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
</div>
<!--loading页结束-->
<body>
<div class="headertwo clearfloat" id="header">
    <p class="fl bt">房东订单</p>
    <a href="#" class="fr"><i class="iconfont icon-sousuo fl"></i></a>
</div>

<div class="clearfloat" id="main">
    <div class="schedule clearfloat">
        <div class="notice">
            <div class="tab-hd clearfloat">
                <ul class="tab-nav clearfloat">
                    <li><a href="<%=path%>/orders/schedule.html?liindex=2">进行中的订单</a></li>
                    <li class="on"><a href="<%=path%>/orders/scheduleY.html?liindex=2"  class="or">已完成的订单</a></li>
                </ul>
            </div>
            <c:forEach items="${yOrders}" var="orders">
                <div class="tab-bd clearfloat" style="margin-bottom: 0.3rem">
                    <div class="tab-pal">
                        <div class="content clearfloat box-s">
                            <div class="topsche-top box-s clearfloat">
                                <p class="fl add">
                                    <i class="iconfont icon-map"></i>
                                        ${orders.city.cityName}·${orders.ftype.ftypeName}
                                </p>
                                <p class="fl time">
                                    <i class="iconfont icon-time"></i>
                                    <fmt:formatDate value="${orders.dtime}" pattern="yyyy-MM-dd"/>
                                </p>
                                <p class="tit titwo fr">
                                    订单已完成
                                </p>
                            </div>
                            <div class="list clearfloat fl box-s">
                                    <div class="tu clearfloat">
                                        <span></span>
                                        <img src="../statics/upload/list-tu.jpg"/>
                                    </div>
                                    <div class="right clearfloat">
                                        <div class="tit clearfloat">
                                            <p class="fl">${orders.house.title}</p>
                                            <span class="fr">${orders.price}<samp>元</samp></span>
                                        </div>
                                        <p class="recom-jianjie">${orders.htype.shi}室${orders.htype.ting}厅s | 125m² </p>
                                        <div class="recom-bottom clearfloat">
                                            <span><i class="iconfont icon-duihao"></i>随时住</span>
                                            <span><i class="iconfont icon-duihao"></i>家电齐全</span>
                                        </div>
                                    </div>
                            </div>
                        </div>
                    </div>
                </div>
            </c:forEach>

        </div>
    </div>
</div>
</div>

<jsp:include page="foot.jsp"></jsp:include>
</body>

<script type="text/javascript" src="../statics/js/jquery.SuperSlide.2.1.js"></script>
<script type="text/javascript" src="../statics/slick/slick.min.js"></script>
<script type="text/javascript" src="../statics/js/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="../statics/js/tchuang.js"></script>
<script type="text/javascript" src="../statics/js/hmt.js"></script>
<script type="text/javascript">
    jQuery(".notice").slide({titCell: ".tab-hd li", mainCell: ".tab-bd", trigger: "click", delayTime: 0});
</script>
</html>
